import org.apache.spark.sql.SparkSession
class SQL1 {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession
      .builder()
      .master("local[*]")
      .appName("spark")
      .getOrCreate()
    val sc = spark.sparkContext
    val data1=sc.textFile("src/main/resources/data")
    data1.foreach(println)
    val dataSet1=
    sc.stop()
  }

}
